package com.aabte.permissionframeworklearn.permission.mapper;

import com.aabte.permissionframeworklearn.permission.beans.PageQuery;
import com.aabte.permissionframeworklearn.permission.dto.SearchLogDto;
import com.aabte.permissionframeworklearn.permission.model.SysLog;
import com.aabte.permissionframeworklearn.permission.model.SysLogWithBLOBs;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysLogMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysLogWithBLOBs record);

    int insertSelective(SysLogWithBLOBs record);

    SysLogWithBLOBs selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysLogWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(SysLogWithBLOBs record);

    int updateByPrimaryKey(SysLog record);

    long countBySearchDto(@Param("dto") SearchLogDto searchLogDto);

    List<SysLogWithBLOBs> getPageListBySearchDto(@Param("page") PageQuery page, @Param("dto") SearchLogDto searchLogDto);
}